// pages/reserve/men-nav/men-nav.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    titles:{
      type:Array,
      value:[]
    },
  
  },

  /**
   * 组件的初始数据
   */
  data: {
    courtIndex:7,
    status: false,
    
    imgurl: "/imgs/reserve/img7.png",
    imgurl1: "/imgs/reserve/reserve-img2.png"
  },

  /**
   * 组件的方法列表
   */
  methods: {
    hidden(e) {
      let index=e.currentTarget.dataset.index;

      this.setData({
        courtIndex: index,
        status:!this.data.status
        
      })
      
      let status=this.data.status;
      this.triggerEvent('headerclick',{index})
    }
  }
})
